package ${basePackageName}.service2;

import org.slf4j.Logger;
import com.xisoft.ConfigVO.*;
import org.slf4j.LoggerFactory;
import com.xisoft.action.SuperAction;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Service;
import org.springframework.aop.framework.AopContext;

 /**
 *
 * @author      作者：${author}
 * @create      创建时间：${createAt}
 * @update      修改时间：${createAt}
 */


@Service("${vName?cap_first}Service")
public class ${vName?cap_first}Service extends SuperAction {

    private static Logger Log = (Logger) LoggerFactory.getLogger(${vName?cap_first}Service.class);

    //配置查询
    public JSONObject businessBillQueryConfig(JSONObject config) throws Exception
    { return ((SuperAction) AopContext.currentProxy()).configQuery(config);}

    //查询
    public JSONObject businessBillQuery(JSONObject config) throws Exception
    {   return ((SuperAction) AopContext.currentProxy()).billQuery(config);  }

    //新增
    public JSONObject businessBillSave(JSONObject config) throws Exception
    { return ((SuperAction) AopContext.currentProxy()).billSave(config);  }

    //修改
    public JSONObject businessBillDelete(JSONObject config) throws Exception
    {return ((SuperAction) AopContext.currentProxy()).billDelete(config); }

    //删除
    public JSONObject businessBillUpdate(JSONObject config) throws Exception
    { return ((SuperAction) AopContext.currentProxy()).billUpdate(config);  }

    //页面加载前置方法
    @Override
    public ConfigVO initConfigParam(JSONObject json, ConfigVO configVO) throws Exception
    { return configVO;  }

    //页面加载后置方法
    @Override
    public JSONObject initConfig(JSONObject json, ConfigVO configVO) throws Exception
    {return json;}

    //查询前置方法
    @Override
    public QueryVO initQueryParam(JSONObject json, QueryVO queryVO) throws Exception
    {return queryVO;  }

    //查询后置方法
    @Override
    public JSONObject initQuery(JSONObject json, QueryVO queryVO) throws Exception
    {return json; }

    //保存前置方法
    @Override
    public SaveVO initSaveParam(JSONObject json, SaveVO saveVO) throws Exception
    {return saveVO;}

    //保存后置方法
    @Override
    public JSONObject initSave(JSONObject json, SaveVO saveVO) throws Exception
    { return json; }

    //更新前置方法
    @Override
    public UpdateVO initUpdateParam(JSONObject json, UpdateVO updateVO) throws Exception
    {  return updateVO; }

    //更新后置方法
    @Override
    public JSONObject initUpdate(JSONObject json, UpdateVO updateVO) throws Exception
    { return json;}

    //删除前置方法
    @Override
    public DeleteVO initDeleteParam(JSONObject json, DeleteVO deleteVO) throws Exception
    { return deleteVO; }

    //删除后置方法
    @Override
    public JSONObject initDelete(JSONObject json, DeleteVO deleteVO) throws Exception
    {   return json; }

}
